﻿using BLL;
using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Admin
{
    public partial class CustomerManager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UserService.RequireLogin(this);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            var customer = new Customer
            {
                CustomerClassID = 1,
                CustomerEmail = TextBox1.Text.Trim(),
                CustomerMobile = TextBox2.Text.Trim(),
                CustomerName = TextBox3.Text.Trim()
            };
            CustomerService.AddCustomer(customer);
        }
    }
}